package cn.itcast.bos.service.system.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.itcast.bos.dao.system.UserRepository;
import cn.itcast.bos.domain.system.User;
import cn.itcast.bos.service.system.UserService;

@Service
@Transactional
public class UserServiceImpl implements UserService{
       
	@Autowired
	private UserRepository useRepository;
	
	@Override
	public User findByUsername(String username){
		return useRepository.findByUsername(username);
	}

	@Override
	public List<User> findAll() {
		return useRepository.findAll();
	}
}
